package com.okhttp.utils;

import java.io.Closeable;
import java.io.IOException;

/**
 * @author GYL
 * @dateTime 2020/4/22-14:49
 * @description
 */
public class Utils {
  /**
   * 关闭流
   * @param ios
   * @return
   */
  public static boolean close(Closeable... ios) {
    if (ios != null) {
      for (Closeable closeable : ios) {
        try { closeable.close(); } catch (Exception e) {}
      }
    }
    return true;
  }
}
